<?php

declare(strict_types=1);

namespace App\Mall\Model;

use Hyperf\Database\Model\SoftDeletes;
use Mine\MineModel;

/**
 * @property int $id 主键
 * @property \Carbon\Carbon $created_at 
 * @property \Carbon\Carbon $updated_at 
 * @property string $deleted_at 
 * @property array $name 名称
 * @property string $icon icon
 * @property int $sort 排序
 * @property int $parent_id 上级
 * @property int $status 1显示
 * @property int $shop_id 
 */
class MallCategory extends MineModel
{
    use SoftDeletes;
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'mall_category';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'created_at', 'updated_at', 'deleted_at', 'name', 'icon', 'sort', 'parent_id', 'status', 'shop_id'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime', 'name' => 'array', 'sort' => 'integer', 'parent_id' => 'integer', 'status' => 'integer', 'shop_id' => 'integer'];
}
